﻿using System;
using System.Collections.Generic;

namespace HYFamilyLibDataManager
{
	public class ExceptionInfo
	{
		public bool IsException()
		{
			return this.vers.Count > 0 || this.names.Count > 0 || this.paramExceptions.Count > 0 || this.categorys.Count > 0;
		}

		public void AddVersionException(string name, string path)
		{
			this.vers.Add(new VersionException(name, path));
		}

		public void AddNameException(string name, string path)
		{
			this.names.Add(new NameException(name, path));
		}

		public void AddParamException(string name, string path)
		{
			this.paramExceptions.Add(new ParamException(name, path));
		}

		public void AddCategoryException(string name, string path)
		{
			this.categorys.Add(new CategoryException(name, path));
		}

		public List<VersionException> vers = new List<VersionException>();

		public List<NameException> names = new List<NameException>();

		public List<ParamException> paramExceptions = new List<ParamException>();

		public List<CategoryException> categorys = new List<CategoryException>();
	}
}
